<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>盒子阴影效果</title>
    <style>
        body {
            background-color: #e9e9e9;
        }

        .ceng {
            width: 300px;
            padding: 10px 10px 20px 10px;
            border: 1px solid #bfbfbf;
            background-color: #fff;
            box-shadow: 2px 2px 3px #aaa;
            -webkit-box-shadow: 2px 2px 3px #aaa;
            -moz-box-shadow: 2px 2px 3px #aaa;
            -o-box-shadow: 2px 2px 3px #aaa;
            -ms-box-shadow: 2px 2px 3px #aaa;
        }

        .rotate_left {
            float: left;
            transform: rotate(7deg);
            -webkit-transform: rotate(7deg);
            -ms-transform: rotate(7deg);
            -moz-transform: rotate(7deg);
            -o-transform: rotate(7deg);
        }

        .rotate_right {
            float: left;
            transform: rotate(-8deg);
            -webkit-transform: rotate(-8deg);
            -ms-transform: rotate(-8deg);
            -moz-transform: rotate(-8deg);
            -o-transform: rotate(-8deg);
        }
    </style>
</head>
<body>
    <div class="ceng rotate_left">
        <img src="../images/html5.png" alt="html5">
        <p>HTML5</p>
    </div>
    <div class="ceng rotate_right">
            <img src="../images/css3.png" alt="css3">
            <p>CSS3</p>
        </div>
</body>
</html>